package com.stylefeng.guns.modular.netcar.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("task_release")
 /**
 * 任务单-抢（派）单信息
 *
 * @author sasazaixian
 * @Date 2018-10-25 18:13
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class TaskRelease extends Model<TaskRelease> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "tr_id", type = IdType.UUID)
    @ApiModelProperty(value = "ID")
    private String trId;     //ID
    @Override
    protected Serializable pkVal() {
        return this.trId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;

    //任务原因
    @TableField(exist = false)
    private String trrReason;

    //驾驶员全路径名
    @TableField(exist = false)
    private String diName;

    //驾驶员真实姓名
    @TableField(exist = false)
    private String realDiName;

    public void setKey(String key) {
		this.key = key;
	}
	public String getKey() {
		return key;
	}	
	public void setSortField(String sortField) {
		this.sortField = sortField;
	}
	public String getSortField() {
		return sortField;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setEdate(String edate) {
		this.edate = edate;
	}
	public String getEdate() {
		return edate;
	}
	public void setSdate(String sdate) {
		this.sdate = sdate;
	}
	public String getSdate() {
		return sdate;
	}

    @ApiModelProperty(value = "抢单司机")
    @TableField("di_id")
    private String diId;     //抢单司机

    @ApiModelProperty(value = "抢单时间")
    @TableField("tr_take_time")
    private Date trTakeTime;     //抢单时间

    @ApiModelProperty(value = "释放时间")
    @TableField("tr_release_time")
    private Date trReleaseTime;     //释放时间

    @ApiModelProperty(value = "释放原因ID")
    @TableField("trr_id")
    private String trrId;     //释放原因ID

    @ApiModelProperty(value = "任务ID")
    @TableField("ti_id")
    private String tiId;     //任务ID

    public String getTrId(){
        return trId;
    }
    public void setTrId(String trId){
        this.trId=trId;
    }
    public String getDiId(){
        return diId;
    }
    public void setDiId(String diId){
        this.diId=diId;
    }
    public Date getTrTakeTime(){
        return trTakeTime;
    }
    public void setTrTakeTime(Date trTakeTime){
        this.trTakeTime=trTakeTime;
    }
    public Date getTrReleaseTime(){
        return trReleaseTime;
    }
    public void setTrReleaseTime(Date trReleaseTime){
        this.trReleaseTime=trReleaseTime;
    }
    public String getTrrId(){
        return trrId;
    }
    public void setTrrId(String trrId){
        this.trrId=trrId;
    }
    public String getTiId(){
        return tiId;
    }
    public void setTiId(String tiId){
        this.tiId=tiId;
    }

}
